#ifndef __CTIMER_H__
#define __CTIMER_H__

#include <unordered_map>
#include <functional>

class Timer{
public:
    using TimerCBType = std::function<void(void)>;

    void register_timer();

    void unrgister_timer();

    int64_t process_timer();
private:
    std::unordered_multimap<int64_t, TimerCBType> m_timers;
};

#endif
